<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/Public/Admin/css/admin.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<script type="text/javascript">
    <?php $menuId= isset($this->menuId)? $this->menuId: 0;?>
    var menuId ="<?php echo '#menuId-'.$this->menuId; ?>";
    $(document).ready(function() {
        $(".c-item-element li a").removeClass("visited");
        $(menuId).addClass("visited");
    });
</script>

<script type="text/javascript">

    $(document).ready(function() {
        $(".c-item-element li a").click(function(){
            var ahref = $(this).attr("href");
            htmlobj=$.ajax({
                type: "POST",
                url: ahref,
                async:false
            });
            $("#view_frame").html(htmlobj.responseText);

            $(".c-item-element li a").removeClass("visited");
            $(this).addClass("visited");
            return false;
        });

        $(".c-item-title").click(function(){

            var ul = $(this).next("ul");

            if(ul.css('display')=="none")
            {
                $(this).children("small").html("▼");
            }else{
                $(this).children("small").html("▶");
            }

            ul.slideToggle();

            var siblings =$(this).parent().siblings();
            siblings.children(".c-item-element").slideUp();
            siblings.children(".c-item-title").children("small").html("▶");
        });
    });




</script>
<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">系统运行状态</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/admin/user-list?menuId=1" id='menuId-1'>添加用户</a></li>
        <li><a href="/admin/testbbb" id='menuId-2'>查看用户</a></li>
        <li><a href="/admin/testbba" id='user-check'>没有权限</a></li>
    </ul>
</div>

<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">用户管理</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/admin/user-list" id='user-add'>添加用户</a></li>
        <li><a href="/admin/testbbb" id='user-check'>查看用户</a></li>
        <li><a href="/admin/testbba" id='user-check'>没有权限</a></li>
    </ul>
</div>
<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">商户管理</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/test/testaaa" id='user-add'>添加用户</a></li>
        <li><a href="/test/testbbb" id='user-check'>查看用户</a></li>
    </ul>
</div>

<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">商品管理</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/test/testaaa" id='user-add'>商品分类管理</a></li>
        <li><a href="/test/testbbb" id='user-check'>查看所有商品</a></li>
    </ul>
</div>

<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">订单管理</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/test/testaaa" id='user-add'>添加用户</a></li>
        <li><a href="/test/testbbb" id='user-check'>查看用户</a></li>
    </ul>
</div>

<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">物流</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/test/testaaa" id='user-add'>添加用户</a></li>
        <li><a href="/test/testbbb" id='user-check'>查看用户</a></li>
    </ul>
</div>

<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">资金管理</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/test/testaaa" id='user-add'>添加用户</a></li>
        <li><a href="/test/testbbb" id='user-check'>查看用户</a></li>
    </ul>
</div>


<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">系统参数管理</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/test/testaaa" id='user-add'>添加用户</a></li>
        <li><a href="/test/testbbb" id='user-check'>查看用户</a></li>
    </ul>
</div>
<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">报表统计</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/test/testaaa" id='user-add'>添加用户</a></li>
        <li><a href="/test/testbbb" id='user-check'>查看用户</a></li>
    </ul>
</div>

<div class="c-menu-item">
    <div class="c-item-title" >
        <span aria-describedby="sizing-addon1">个人中心</span>
        <small style="float:right">▶</small>
    </div>
    <ul class="c-item-element" style="display: none;">
        <li><a href="/test/testaaa" id='user-add'>修改密码</a></li>
    </ul>
</div>
</body>
</html>